package com.youlv.yl.entity.network;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author heyue
 * @since 2022-01-02
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("u_smslog")
@ApiModel(value = "Smslog对象", description = "")
public class SmsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("type")
    private Integer type;

    @TableField("phone")
    private String phone;

    @TableField("info")
    private String info;

    @TableField("ctime")
    private Date ctime;

    public SmsLog(Integer type, String phone, String info) {
        this.type = type;
        this.phone = phone;
        this.info = info;
        this.ctime = new Date();
    }
}
